package com.three.dao;

import com.three.domain.Students;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface PrestudentsDao {

    void updateStudentType(); // 定义更新学生类型的方法
    // 查询预招生总条数
    int PageCountpreStudents(@Param("xiaoshou_id") Integer xiaoshou_id);
    // 查询预招生列表
    List<Students> prestudentsList(@Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize,@Param("xiaoshou_id") Integer xiaoshou_id);

    int addpre(Students students);
    // 更新预招生信息
    int updatepreStudent(Students student);
    // 软删除预招生
    void softDeletepreStudent(int student_id);

    int PageCountprekey(@Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize,@Param("name")String name,@Param("xiaoshou_id")Integer xiaoshou_id);
//    关键字查询预招生列表
    List<Students> getPreByName(@Param("pageIndex")Integer pageIndex, @Param("pageSize")Integer pageSize,@Param("name")String name,@Param("xiaoshou_id")Integer xiaoshou_id);

    //修改状态
    int updateStatus();

    String getClassName(@Param("major")String major,@Param("enrollment_date")String enrollment_date);

    String getGraduationDate(String class_name);
    Object ccgc();
}
